package com.system.runtai.utils;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class PromptInformationDown {

    //提示信息表id
    @TableId
//    @ExcelIgnore
    @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER) // 内容居中
    @ExcelProperty("ID")
    @ColumnWidth(10)
    private Long id;

    @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER) // 内容居中
    @ExcelProperty("昵称")
    @ColumnWidth(20)
    private String nickName;

    @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER) // 内容居中
    @ExcelProperty("电话")
    @ColumnWidth(20)
    private String phone;

    @ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER) // 内容居中
    @ColumnWidth(20)
    @ExcelProperty("创建时间")
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;


}
